package events

import (
	"github.com/goravel/framework/contracts/event"
)

type OrderShipped struct {
}

func (receiver *OrderShipped) Handle(args []event.Arg) ([]event.Arg, error) {
	/*
		// 事件调用
		// bool, int, uint, float32, string, []int
		err := facades.Event().Job(&event.OrderShipped{}, []event.Arg{
			{Type:"string", Value:"hello"},
			{Type:"int", Value:32},
		}).Dispatch()
		if err != nil {
			panic(err.Error())
		}
	*/
	return args, nil
}
